﻿@model TestUp.Models.UserModels.PassingResultsModel

@{
    ViewBag.Title = "PassingResults";
    Layout = "~/Views/User/_UserNavigationLayout.cshtml";
}

<h2>Results</h2>

@(Html.Kendo().Grid(Model.PassingResults)
.Name("passingResults")
.Columns(cols =>
    {
        cols.Bound(x => x.Test.TestName);
        cols.Bound(x => x.Result);
        cols.Bound(x => x.PassingDate);
    })
.Sortable()
.Pageable(pageable => pageable.Messages(messages =>
{
    messages.Display("Displayed {0} - {1} of {2} items.");
    messages.Empty("No items to display");
    messages.Page("Page");
}))
.DataSource(dataSource => dataSource
    .Server()
    .Sort(sorting => sorting.Add(model => model.PassingDate).Descending())
    .PageSize(7))
)